package com.ferry.lock.exception;

/**
 * Created by daiyong
 */
public enum ErrorCode {

	UnSupported(403, "不支持的操作"),
	EMPTY(503, "无锁"),
	DUP(505, "锁重复"),
	OVERSIZE(506, "超限");

	private int code;
	private String errorMsg;

	ErrorCode(int code, String errorMsg) {
		this.code = code;
		this.errorMsg = errorMsg;
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public String getErrorMsg() {
		return errorMsg;
	}

	public void setErrorMsg(String errorMsg) {
		this.errorMsg = errorMsg;
	}
}
